#include "PlainTextEdit.h"

PlainTextEdit::PlainTextEdit(QWidget *parent) : QPlainTextEdit(parent)
{

}

void PlainTextEdit::wheelEvent(QWheelEvent *event)
{
    if ( QApplication::keyboardModifiers() == Qt::ControlModifier )
    {
        if ( event->delta() > 0 )
        {
            this->zoomIn();
        }
        else
        {
            this->zoomOut();
        }
    }
    else
    {
        QPlainTextEdit::wheelEvent(event);
    }
}
